import request from '@/utils/request'

// 查询用户支付记录列表
export function listAppUserPayRecord(query) {
  return request({
    url: '/app/appUserPayRecord/list',
    method: 'get',
    params: query
  })
}

// 查询用户支付记录详细
export function getAppUserPayRecord(id) {
  return request({
    url: '/app/appUserPayRecord/' + id,
    method: 'get'
  })
}

// 新增用户支付记录
export function addAppUserPayRecord(data) {
  return request({
    url: '/app/appUserPayRecord',
    method: 'post',
    data: data
  })
}

// 修改用户支付记录
export function updateAppUserPayRecord(data) {
  return request({
    url: '/app/appUserPayRecord',
    method: 'put',
    data: data
  })
}

// 删除用户支付记录
export function delAppUserPayRecord(id) {
  return request({
    url: '/app/appUserPayRecord/' + id,
    method: 'delete'
  })
}
